@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";
@import "./btn.scss";

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
  font-size: 16px;
  color: #333;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
textarea,
input {
  margin: 0;
  padding: 0;
}

address,
cite,
dfn,
em,
var,
i {
  font-style: normal;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.pointer {
  cursor: pointer;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  margin: 20px 20px 0;
  padding: 20px;
  height: calc(100% - 20px);
  overflow: auto;
  background: #ffffff;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg,
      rgba(32, 182, 249, 1) 0%,
      rgba(32, 182, 249, 1) 0%,
      rgba(33, 120, 241, 1) 100%,
      rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.el-icon-delete {
  color: #971111;
}

.icon {
  width: 12px;
  height: 12px;
  margin-right: 5px;
  vertical-align: middle;
}

.operateIcon {
  width: 12px;
  height: 12px;
  margin-right: 1px;
  vertical-align: middle;
}

.el-table {
  .el-button--text {
    font-family: SourceHanSansCN-Regular, SourceHanSansCN;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.9);
  }
}

.el-button {
  font-family: SourceHanSansCN-Regular, SourceHanSansCN;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.9);
}

//弹框
.el-dialog {
  box-shadow: 0px 28px 35px -14px rgba(121, 121, 121, 0.5);
  border-radius: 8px;

  .el-dialog__header {
    height: 48px;
    line-height: 48px;
    background: #efeeee;
    border-radius: 8px 8px 1px 1px;
    padding: 0 20px;

    .el-dialog__headerbtn {
      top: 16px;
    }

    .el-dialog__title {
      font-size: 16px;
      font-family: SourceHanSansCN-Regular, SourceHanSansCN;
      font-weight: 400;
      color: rgba(51, 51, 51, 0.9);
    }
  }

  .el-dialog__body {
    padding: 20px 20px 0;

    .vue-treeselect__control {
      height: 28px;
      line-height: 28px;
      font-size: 12px;
    }

    .vue-treeselect__single-value {
      line-height: 28px;
      padding-left: 10px;
    }

    .vue-treeselect__placeholder {
      line-height: 28px;
      padding-left: 10px;
    }

    .vue-treeselect__input {
      line-height: 28px;
      height: 26px;
      padding-left: 5px;
    }
  }

  .dialog-footer {
    text-align: center;
  }

  .dialogCancel {
    background-color: #e7e7e7 !important;
    color: #000000 !important;
    border-radius: 3px;
    border: 1px solid #e7e7e7 !important;
  }

  .component-upload-image {
    .w_icon {
      width: 130px;
      height: 80px;
      background: #f4f7fa;
      border-radius: 4px;
      border: 1px dashed #416a8c;
      text-align: center;
      cursor: pointer;

      .uploadIcon {
        width: 26px;
        height: 26px;
        vertical-align: middle;
        margin-top: 15px;
      }

      .uploadText {
        font-size: 14px;
        font-family: SourceHanSansCN-Regular, SourceHanSansCN;
        font-weight: 400;
        color: #971111;
        line-height: 32px;
        margin: 0;
      }
    }

    .el-upload-list--picture .el-upload-list__item {
      height: 70px;

      .el-upload-list__item-thumbnail {
        height: 50px;
        width: 50px;
      }

      .el-upload-list__item-name {
        line-height: 50px;
      }
    }
  }
}

//查询treeselect
.treeselect {
  height: 32px !important;
  line-height: 32px !important;
  font-size: 12px;

  .vue-treeselect__control {
    height: 32px !important;
    line-height: 32px !important;

    .vue-treeselect__single-value {
      line-height: 32px;
      padding-left: 10px;
    }

    .vue-treeselect__placeholder {
      line-height: 32px;
      padding-left: 10px;
    }

    .vue-treeselect__input {
      line-height: 32px;
      height: 28px;
      padding-left: 5px;
    }
  }
}

// 修改公共样式
.tableAdd {
  background-color: #971111 ;
  border-radius: 3px;
  color: #ffffffE6 !important;
  border: none;

  span {
    font-size: 16px;
  }
}

.table-add-btn {
  width: 84px;
  height: 32px;
  padding-left: 12px;
  text-align: left;
}

.table-openClose-btn {
  width: 119px;
  height: 32px;
  border: 1px solid #971111;

  &:hover {
    border-color: #971111 !important;
  }

  &:active {
    border-color: #971111 !important;
  }

  &:focus {
    border-color: #971111 !important;
  }

  span {
    font-size: 16px;
    color: #333333E6;
  }
}

.el-dialog__body {
  .el-form-item__label {
    font-size: 16px;
    color: #333333E6;
    font-weight: 400;
  }

  .el-input {
    width: 100%;
  }

  .vue-treeselect__control,
  .vue-treeselect__menu-container {
    width: 100%;
  }

  .el-radio__label {
    font-size: 16px;
    color: #333;
  }

  .el-radio__inner {
    width: 16px;
    height: 16px;

    &:hover {
      border-color: #971111;
    }
  }

  .is-checked {
    &+.el-radio__label {
      color: #333;
    }

    .el-radio__inner {
      background-color: #fff;
      border-color: #971111;

      &::after {
        width: 8px;
        height: 8px;
        background-color: #971111;
      }
    }
  }

  .el-select {
    .el-input {
      width: 100%;
    }
  }

}

// 输入框点击边框变色
.el-input__inner {
  &:focus {
    border-color: #971111;
  }
}

// 下拉框鼠标点击边框变色
.el-select {
  .el-input__inner {
    &:focus {
      border-color: #971111;
    }
  }

  .el-input.is-focus .el-input__inner {
    border-color: #971111;
  }
}

// 下拉框内容鼠标移入变色
.el-select-dropdown__item.hover {
  background-color: #fff1f1;
  color: #971111;
}

.el-select-dropdown__item {
  &:hover {
    background-color: #fff1f1;
    color: #971111;
  }
}

// 下拉框内容选中文字样式
.el-select-dropdown__item.selected {
  color: #971111;
}

.el-form-item__content {
  .el-select--small {
    width: 72%;

    .el-input {
      width: 100%;
    }
  }
}

.el-dialog__footer {
  .el-button {
    width: 60px;
    height: 32px;
    vertical-align: top;
    font-size: 16px;
    font-weight: 400;
    padding: 0;
    text-align: center;
    line-height: 30px;
  }
}

.ruo-style-set {
  .search-from {
    .el-form-item {
      width: 100%;

      .el-form-item__content {
        width: 70%;
      }
      button {
        width: 84px;
        height: 32px;
        background-color: #fff;
        border-color: #971111;
        font-size: 16px;
        color: rgba(51, 51, 51, 0.9);

        &:hover {
          color: rgba(51, 51, 51, 0.9);
        }
      }
    }
    .search-from-btn {
      .el-form-item__content {
        width: 100%;
      }
    }
    .el-select{
      width: 100%;
    }
    .el-form-item__content{
      .el-date-editor{
        width: 100%;
      }
    }
  }

  .el-form-item__label {
    font-size: 16px;
    color: rgba(51, 51, 51, 0.9);
  }

  .table-btn {
    .table-add-btn {
      width: 84px;
      height: 32px;
      background: #971111;
      border-color: #971111;
      font-size: 16px;
      color: rgba(255, 255, 255, 0.9);
    }

    .table-open-btn {
      width: 119px;
      height: 32px;
      background: #fff;
      color: rgba(51, 51, 51, 0.9);
      border-color: #971111;
      font-size: 16px;
    }

    .table-export-btn {
      width: 80px;
      height: 32px;
      background: #fff;
      border-color: #971111;
      font-size: 16px;
      color: rgba(51, 51, 51, 0.9);
    }
    .table-delete-btn{
      width: 80px;
      height: 32px;
      font-size: 16px;
      background: #fff;
      border-color: #dcdcdc;
      color: rgba(0,0,0,0.9);
      padding-left: 12px;
    }
  }

  .el-table .el-table__header-wrapper th,
  .el-table .el-table__fixed-header-wrapper th {
    background-color: #fafafa;
  }

  .el-table th.el-table__cell.is-leaf,
  .el-table td.el-table__cell {
    border-color: #e9e9e9;
    font-size: 16px;
    color: rgba(51, 51, 51, 0.65);
    font-weight: 400;
  }

  .cell .el-tag {
    background: none;
    border: none;
    font-size: 16px;
    padding-left: 0;
  }

  .operation {
    button {
      width: 80px !important;
      height: 32px;
      border-color: #dcdcdc;
      font-size: 16px;
    }
  }

  .el-switch.is-checked .el-switch__core {
    border-color: #971111;
    background-color: #971111;
  }

  .el-pagination {
    width: 100%;
    display: flex;

    .el-pagination__total {
      color: rgba(0, 0, 0, 0.6);
      font-size: 14px;
    }

    .el-pagination__sizes {
      margin-left: auto;
    }

    .el-select {
      .el-input {
        width: 90px;
        height: 32px;

        .el-input__inner {
          width: 90px;
          height: 32px;
          font-size: 14px;
          color: rgba(0, 0, 0, 0.9);

          &:hover {
            border-color: #971111;
          }
        }

        .el-select__caret {
          color: rgba(0, 0, 0, 0.9);
          font-size: 16px;
        }
      }
    }

    .btn-prev,
    .btn-next {
      background-color: #fff;
    }

    .btn-next {
      color: #000000e6;
    }

    .el-pager {
      li {
        width: 32px;
        height: 32px;
        border-radius: 3px;
        background-color: #fff;
        border: 1px solid #dcdcdc;
        line-height: 32px;
        color: #00000099;

        &:not(.disabled):hover {
          color: #00000099;
        }

        &:not(.disabled).active {
          background-color: #971111;
          border-color: #971111;

          &:hover {
            color: #fff;
          }
        }
      }
    }

    .el-pagination__jump {
      color: #000000e6;
      font-size: 14px;

      .el-input__inner {
        width: 48px;
        height: 32px;
        font-size: 14px;
        color: #000000e6;
        border-color: #dcdcdc;
      }
    }
  }
}